// 语言信息
export interface Language {
  language_id: number
  name: string
  code: string
  icon: string
  sort: number
  status: number
  is_default: number
  create_time: string
  update_time: string
}

// 字典语言数据
export interface DictLang {
  dict_lang_id: number
  dict_id: number
  language_id: number
  name: string
  remark: string
  language?: Language
}

// 字典数据
export interface Dict {
  dict_id: number
  code: string
  type: string
  sort: number
  status: number
  status_text: string
  create_time: string
  update_time: string
  name: string
  remark: string
  item_count: number
  langs: DictLang[]
}

// 字典查询参数
export interface DictQuery {
  name?: string
  code?: string
  type?: string
  status?: number
  page?: number
  limit?: number
}

// 字典表单数据
export interface DictForm {
  code: string
  type: string
  sort: number
  status: number
  langs: {
    language_id: number
    name: string
    remark: string
  }[]
}

// 字典项语言数据
export interface DictItemLang {
  item_lang_id: number
  item_id: number
  language_id: number
  name: string
  remark: string
}

// 字典项数据
export interface DictItem {
  item_id: number
  dict_id: number
  value: string
  name: string
  remark: string
  sort: number
  status: number
  status_text: string
  create_time: string
  update_time: string
  langs: DictItemLang[]
}

// 字典项查询参数
export interface DictItemQuery {
  dict_id: number
  name?: string
  status?: number
}

// 字典项表单数据
export interface DictItemForm {
  dict_id?: number
  value: string
  sort: number
  status: number
  langs: {
    language_id: number
    name: string
    remark: string
  }[]
} 